package com.zretc.entity;

import org.springframework.stereotype.Component;

@Component
public class Seat {
    //座位id
    private String seatId;
    //座位横坐标
    private Integer xAxis;
    //座位纵坐标
    private Integer yAxis;
    //关联播放厅对象
    private BroadcastHall broadcastHall;

    public Seat() {
    }

    public Seat(String seatId, Integer xAxis, Integer yAxis, BroadcastHall broadcastHall) {
        this.seatId = seatId;
        this.xAxis = xAxis;
        this.yAxis = yAxis;
        this.broadcastHall = broadcastHall;
    }

    public String getSeatId() {
        return seatId;
    }

    public void setSeatId(String seatId) {
        this.seatId = seatId;
    }

    public Integer getxAxis() {
        return xAxis;
    }

    public void setxAxis(Integer xAxis) {
        this.xAxis = xAxis;
    }

    public Integer getyAxis() {
        return yAxis;
    }

    public void setyAxis(Integer yAxis) {
        this.yAxis = yAxis;
    }

    public BroadcastHall getBroadcastHall() {
        return broadcastHall;
    }

    public void setBroadcastHall(BroadcastHall broadcastHall) {
        this.broadcastHall = broadcastHall;
    }

    @Override
    public String toString() {
        return "Seat{" +
                "seatId='" + seatId + '\'' +
                ", xAxis=" + xAxis +
                ", yAxis=" + yAxis +
                ", broadcastHall=" + broadcastHall +
                '}';
    }
}
